import 'package:flutter/material.dart';
import '../search.dart';

class CatygoryPage extends StatefulWidget {
  const CatygoryPage({super.key});

  @override
  State<CatygoryPage> createState() => _CatygoryPageState();
}

class _CatygoryPageState extends State<CatygoryPage> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/dialog');
            },
            child: Text('Dialog演示'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageview');
            },
            child: Text('PageView演示'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageviewBuilder');
            },
            child: Text('pageviewBuilder演示'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageViewFull');
            },
            child: Text('pageViewFull无限加载'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageViewSwiper');
            },
            child: Text('PageViewSwiper轮播图'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageViewSwiperTimer');
            },
            child: Text('PageViewSwiperTimer定时器'),
          ),
          Divider(),
          ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageViewKeepalive');
            },
            child: Text('pageViewKeepAlive'),
          ),
        ],
      ),
    );
  }
}
